package com.mzj.saas.rent;

import com.haixiaoke.saas.repository.core.BaseController;
import com.haixiaoke.saas.repository.pojo.SmartLock;
import com.haixiaoke.saas.repository.service.ISmartLockService;
import com.mzj.saas.mservice.smartlock.service.SmartLockBrandService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author Dell
 * @Date 2023/9/21
 **/
@RestController
@RequestMapping("/smart/lock")
public class SmartLockController extends BaseController {

    @Autowired
    private ISmartLockService iSmartLockService;
    @Autowired
    private SmartLockBrandService smartLockBrandService;

    @GetMapping("/list")
    public String listByUserId(SmartLock smartLock) {
        String result = smartLockBrandService.selectLockList(smartLock);
        return result;
    }

}
